<%@page import="com.ljw.store.entity.*"%>
<%@page import="com.marchant.lyh.services.ItemService"%>
<%@page import="com.marchant.lyh.dao.*"%>
<%@page import="com.marchant.lyh.domain.Item"%>

<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	</head>

	<body>
		<jsp:include page="top.jsp"></jsp:include>

		<!-- 内容 开始 -->
		<div class="content" >

			<div class="header">
				<h1 class="page-title">
					热门餐饮
				</h1>
			</div>

			<ul class="breadcrumb">
				<li>
					<a href="/WirelessOrder/home.do?flag=home">主页</a>
					<span class="divider">/</span>
				</li>
				<li class="active">
					热门餐饮
				</li>
			</ul>

			<div class="container-fluid">
				<div class="row-fluid">
					<div class="row-fluid">
					<br>
						<div class="well" >
							<ul class="thumbnails">
								<div class="row-fluid">

								<s:iterator value="allItem" var="menu" status="st">
									<li class="span3">
										<div class="thumbnail">
											<a href="getItem.action?itemId=<s:property value="itemId" />"><img src="<s:property value="itemPicture" />" alt="" width="220"
												height="170"></a>
											<h6>
												<a href="getItem.action?itemId=<s:property value="itemId" />">餐饮名：<s:property value="itemName" /></a>
												(RMB:<s:property value="itemPrice" />)
											</h6>
											<h6>
												已售<s:property value="itemNum" />笔
											</h6>

										</div>
									</li>
									<s:if test="%{#st.index%4 == 3 && !#st.last}">
										<!-- index从0~3，当遍历到1行最后一个，只要不是最后一行，就在下面加一条线 -->
							</div>
							<div class="page-header"></div>
							<div class="row-fluid">
								</s:if>
								</s:iterator>
						</ul>
					</div>


					<div class="pagination">
						<ul>
							<li>
								<a href="showhotItem?pageNumber=1">首页</a>
			
								<a href="showhotItem?pageNumber=<s:property value="pageNumber-1"/>">上一页</a>
					
								<a href="showhotItem?pageNumber=<s:property value="pageNumber+1"/>">下一页</a>
					
								<a href="showhotItem?pageNumber=<s:property value="totalPage"/>">末页</a>
					
								<s:property value="pageNumber" />
								/
								<s:property value="totalPage" />
							</li>
						</ul>
					</div>
					
				</div>
			</div>
		</div>




	</body>
</html>
